/**
 @ClassName:mixins
 @Author:TwT
 @Date:2022/6/14 23:04
 @Version:1.0
 **/
export default {
    methods: {
        getEleForm() {
            return this.$refs['ele-form'];
        },
    },
    watch: {
        visible(val) {
            if (val) {
                //初始化
                if (this.init && typeof this.init === 'function') this.init()
            }
        }
    }
}